﻿@model InfoTech.VinhSon.Models.CSectionModel
@{
    ViewBag.Title = "AddSection";
    Layout = "~/Areas/Administrator/Views/Shared/_Dialog.cshtml";
}
@section script
{
    <script src="@Url.Content("~/Scripts/ckeditor/ckeditor.js")"> </script>
    <script src="@Url.Content("~/Areas/Administrator/Content/js/htmleditor.js")"> </script>
    <script type="text/javascript">
        $(document).ready(function () {
            @if (true == ViewBag.Completed)
            {
                @:window.parent.closeWindowAddSection(true);
            }
        });
    </script>
}
<form class="stdform stdform2" method="POST">
@Html.HiddenFor(c => c.CategoryId)
<p>
    <label>
        Name</label>
    <span class="field">
        @Html.TextBoxFor(c => c.Name,
                             new
                             {
                                 @class = "input-xlarge",
                                 placeholder = "Name"
                             })
        @Html.ValidationMessageFor(c => c.Name)
    </span>
</p>
<p>
    <label>
        Priority</label>
    <span class="field">
        @Html.TextBoxFor(c => c.Priority,
                             new
                             {
                                 @class = "input-xlarge",
                                 placeholder = "Priority"
                             })
        @Html.ValidationMessageFor(c => c.Priority)
    </span>
</p>
<p>
    <label>
        Detail</label>
    <div class="field">
        @Html.TextAreaFor(c => c.Detail,
                              new
                                  {
                                      @class = "input-xlarge html-editor",
                                      placeholder = "Detail"
                                  })
        @Html.ValidationMessageFor(c => c.Detail)
    </div>
</p>
<p>
    <label>
        Activated</label>
    <span class="field">
        @Html.CheckBoxFor(c => c.Activated)
        @Html.ValidationMessageFor(c => c.Activated)
    </span>
</p>
<p class="stdformbutton">
    <label>
    </label>
    <input type="submit" value="Insert New" class="btn btn-primary" />
    <input type="button" class="btn" value="Cancel" onclick=" window.parent.closeWindowAddSection(); " />
</p>
</form>
